<?php
/**
 * Created by PhpStorm.
 * User: lifeng
 * Date: 2017/8/16
 * Time: 10:58
 */
namespace App\Http\Controllers;
use App\Models\Student;
use Illuminate\Container\Container;

class WelcomeController
{
    public function index(){
        $student = Student::first();
        $data = $student->getAttributes();
        var_dump($data);

        $app = Container::getInstance();
        $factory = $app->make('view');


        return $factory->make('welcome')->with('data','lifeng hello');
    }
}